<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<smart>include file ='../head.config.html'</smart>
<script language="javascript">
$(function(){
	$(".GBMessage:odd").addClass("GBMessage_even");//斑马纹
	$("#addtofav a").click(
		function(){
			$.get("../member/own_collection.php",{action:"new",genre:"store",collection:"<smart>$frame_shop_id</smart>"},function(data){if(data == '1'){alert('收藏成功');}if(data == '-1'){alert('您尚未登陆');}if(data == '0'){alert('自己不能收藏自己');}if(data == '2'){alert('已经收藏过了');}}
			)
		}
	);//添加收藏
})
</script>
<link href="../templates/storestyle/<smart>$frame_shop_info.shop_style</smart>/style.css" rel="stylesheet" type="text/css" />
</head><body>
<div id="container"> <smart>include file ='../header.html'</smart> <smart>include file ='../PathLinksLevel.html'</smart>
  <div id="ShopFP">
    <ul id="NavBar" class="NavBar">
      <li class="select"><smart>$frame_shop_info.shop_name</smart><!--商店名称--></li>
      <li><a href="intro.php?userid=<smart>$frame_user_id</smart>">【店铺介绍】</a></li>
    </ul>
    <div id="ShopInfo">
      <div id="PicAndFav">
        <div id="ShopPic" style=" background:url(../<smart>$frame_shop_info.shop_pic</smart>) no-repeat center center;"></div>
        <div id="addtofav"> <a href="#">收藏本店铺</a> </div>
      </div>
      <div id="ShopInfoList">
        <ul>
          <li><span class="ListHint">掌柜:</span><smart> $frame_shop_info.login_name </smart> </li>
          <li><span class="ListHint">卖家信用:</span><smart> $frame_shop_info.sale_score </smart> <a href="#" target="_blank"><img src="../<smart>$templatepath</smart>/images/b_red_2.gif" alt="251－500个卖家信用积分，请点击查看详情"></a></li>
          <li><span class="ListHint">买家信用:</span><smart> $frame_shop_info.buy_score </smart> <a href="#" target="_blank"><img src="../<smart>$templatepath</smart>/images/b_red_2.gif" alt="11－40个买家信用积分，请点击查看详情"></a></li>
          <li><span class="ListHint">宝贝数:</span><smart> $product_count </smart></li>
          <li><span class="ListHint">创店时间:</span><smart> $frame_shop_info.practice_time|date_format:"%Y-%m-%d" </smart></li>
          <li><span class="ListHint">地址:</span><smart> $frame_shop_info.province </smart><smart> $frame_shop_info.city </smart></li>
          <li><span class="ListHint"></span><a href="../member/own_message.php?action=add&username=<smart>$frame_shop_info.login_name</smart>" target="_blank">发站内信件</a></li>
        </ul>
      </div>
      <div id="ShopAnnounceContainer">
        <h1>店铺公告</h1>
        <div id="ShopAnnounceContent">
          <marquee style="position: relative;" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="1" scrolldelay="85" direction="up" behavior="scroll" height="100%">
          <smart>$frame_shop_info.proclamation</smart>
          <!--商店公告-->
          </marquee>
        </div>
        <div id="VipCardTitle" style="display: none;"></div>
      </div>
    </div>
    <div id="RecommendedItems">
      <table>
        <tbody>
          <tr> <smart> section name=k loop=$shop_recommended_product_array </smart>
            <td valign="top"><div class="ReItem">
                <div class="ReItemPic"> <a href="../home/product.php?action=view&pid=<smart> $shop_recommended_product_array[k].p_code </smart>" target="_blank"> <img src="../<smart> $shop_recommended_product_array[k].p_pic|default:'templates/default/home/images/default.jpg' </smart>" width="150"> </a> </div>
                <div class="ItemName"> <a href="../home/product.php?action=view&pid=<smart> $shop_recommended_product_array[k].p_code </smart>" target="_blank"> <smart> $shop_recommended_product_array[k].p_name </smart> </a> </div>
                <div> 一口价 <span class="ItemPrice"><smart> $shop_recommended_product_array[k].p_price </smart> 元</span> </div>
              </div></td>
            <smart> /section </smart> </tr>
        </tbody>
      </table>
    </div>
    <div id="ShopMain">
      <div id="shopmain1">
        <div class="shopmain2">
          <div class="ItemCategoriesTitle">店铺类目</div>
          <div class="ItemContent"> <a href="index.php?userid=<smart> $frame_user_id </smart>"><b>所有宝贝</b></a>
            <ul>
              <smart> section name=i loop=$category_array </smart>
              <!--商店宝贝分类-->
              <li><a href="index.php?userid=<smart> $frame_user_id </smart>&classid=<smart> $category_array[i].class_id </smart>"><smart> $category_array[i].class_name </smart></a></li>
              <smart> /section </smart>
            </ul>
          </div>
        </div>
        <div class="shopmain2">
          <div class="ItemCategoriesTitle">友情链接</div>
          <div class="ItemContent">
            <ul>
              <smart> section name=i loop=$link_array </smart>
              <!--商店友情链接-->
              <li><a href="index.php?userid=<smart> $link_array[i].link_shop_id </smart>"><smart> $link_array[i].shop_name </smart></a></li>
              <smart> /section </smart>
            </ul>
          </div>
        </div>
      </div>
      <div id="ItemCol">
        <div id="itemcol2">
          <div id="SubNavBar">
            <ul class="NavBar" id="navbar">
              <li class="select"><a href="index.php?userid=<smart> $userid </smart>">所有宝贝</a></li>
              <li><a href="index.php?userid=<smart> $userid </smart>&list=new">新到宝贝</a></li>
              <li><a href="index.php?userid=<smart> $userid </smart>&list=end"> 即将结束</a></li>
            </ul>
            <div id="InShopSearch">
              <form name="form1" action="index.php?userid=<smart> $userid </smart>" method="post">
                <input name="keyword" size="20" value="" style="height: 14px;" type="text">
                <input name="Submit" value="搜索宝贝" type="submit"><input name="searchtype" size="20" value="1" style="height: 14px;" type="hidden">
              </form>
            </div>
          </div>
          <div id="ViewInfoTop">
            <div id="SortByPrice">
              <input name="ClosePicView" value="关闭图片浏览" type="button" />
              <a href="index.php?userid=<smart> $userid </smart>&price=up<smart> if $classid != "" </smart>&classid=<smart> $classid </smart><smart> /if </smart>">价格从低到高</a> <a href="index.php?userid=<smart> $userid </smart>&price=down<smart> if $classid != "" </smart>&classid=<smart> $classid </smart><smart> /if </smart>">价格从高到低</a> </div>
            <div class="ViewInfoLeft"></div>
            <div class="ViewInfoRight"> <smart> $page_list </smart> </div>
          </div>
          <smart> section name=i loop=$product_array</smart>
          <ul class="Item">
            <li class="ItemPic"> <a href="../home/product.php?action=view&pid=<smart> $product_array[i].p_code </smart>" target="_blank"><img src="../<smart> $product_array[i].p_pic|default:'templates/default/home/images/default.jpg' </smart>" width="100" /></a> </li>
            <li class="ItemName"> <a href="../home/product.php?action=view&pid=<smart> $product_array[i].p_code </smart>" target="_blank" title="<smart> $product_array[i].p_name </smart>"> <smart> $product_array[i].p_name </smart> </a> </li>
            <li> <span class="ItemSellType"> 一口价 </span> <span class="ItemPrice"><smart> $product_array[i].p_price </smart> 元 </span> </li>
            <li class="ItemTimeLeft">剩余<smart> $product_array[i].left_days </smart>天</li>
          </ul>
          <smart> /section </smart>
          <div id="ViewInfoBottom">
            <div class="ViewInfoLeft"></div>
            <div class="ViewInfoRight"> <smart> $page_list </smart> </div>
          </div>
        </div>
        <div id="GuestBook">
          <div id="GuestBookTitle">
            <div id="GBNewMessage">最新留言</div>
            <div class="GBallMessage"><a href="message.php?action=new&userid=<smart>$frame_user_id</smart>">我要留言</a></div>
            <div class="GBallMessage"><a href="message.php?userid=<smart>$frame_user_id</smart>">全部留言</a></div>
          </div>
          <div id="GuestBookContent"> <smart> section name=i loop=$message_array </smart>
            <!--商店留言-->
            <div class="GBMessage">
              <div class="IdAndTime"> <a href="#"><smart> $message_array[i].member_name </smart></a> <br />
                <smart> $message_array[i].message_time|date_format:"%Y-%m-%d %H:%M" </smart> </div>
              <div class="MessageContent"> <smart> $message_array[i].message_content </smart> <br>
                <span class="MessageFromSellerHint">掌柜回复：</span> <span class="MessageFromSeller"><smart> $message_array[i].message_recontent </smart></span> </div>
              <div class="ReplyTheMessage"> </div>
            </div>
            <smart> /section </smart> </div>
        </div>
      </div>
    </div>
  </div>
  <smart>include file ='../footer.html'</smart> </div>
</body>

</html>
